#DES new decisions#

political_actions = {
	AFG_new_revenge_RAJ = {
		icon = generic_prepare_civil_war

		allowed = { always = no }

		available = {
			is_neighbor_of = FROM
			NOT = { has_non_aggression_pact_with = FROM }
			NOT = { has_guaranteed = FROM }
			is_subject = no
			NOT = { owns_state = 445 }
			NOT = { owns_state = 442 }
			RAJ = { surrender_progress > 0.3 }
		}

		cancel_trigger = {
			OR = {
				NOT = { can_declare_war_on = FROM }
				is_subject = yes
				NOT = { is_neighbor_of = FROM }
				has_non_aggression_pact_with = FROM
				has_guaranteed = FROM
			}
		}


		cost = 0
		days_remove = 3
		war_with_target_on_remove = yes
		fire_only_once = yes

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				country_is_in_dangerous_war = yes
			}
		}

		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancel AFG_revenge_RAJ"
			clear_decision_attack_AI = yes
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete AFG_revenge_RAJ"
			RAJ = { incoming_war_notification_effect = yes }
			setup_decision_attack_AI = yes
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove AFG_new_revenge_RAJ target: [From.GetName]"
			clear_decision_attack_AI = yes
			add_state_claim = 445 #Quetta
			add_state_claim = 444 #Baluchistan
			declare_war_on = {
				type = annex_everything
				target = RAJ
			}
		}
	}

	AFG_secure_the_pamir = {
		icon = generic_prepare_civil_war

		allowed = { always = no }

		visible = {
			OR = {
				is_neighbor_of = TRK
				is_neighbor_of = BUK
			}
			NOT = { has_non_aggression_pact_with = BUK }
			NOT = { has_non_aggression_pact_with = TRK }
			NOT = { has_guaranteed = BUK }
			NOT = { has_guaranteed = TRK }
			NOT = { owns_state = 804 }
			NOT = { owns_state = 1042 }
		}
		available = {
			TRK = { has_war_with = BUK }
			OR = {
				has_army_manpower = {
    					size > 100000
				}
				has_global_flag = AFG_won_fifth_war
			}
			
		}

		cancel_trigger = {
			OR = {
				AND = {
					TRK = {
						divisions_in_state = {
    							size > 1
    							state = 804
						}
						divisions_in_state = {
    							size > 1
    							state = 1042
						}
					}
				}
				AND = {
					BUK = {
						divisions_in_state = {
    							size > 1
    							state = 804
						}
						divisions_in_state = {
    							size > 1
    							state = 1042
						}
					}
				}
				AND = {
					RUS = {
						divisions_in_state = {
    							size > 1
    							state = 804
						}
						divisions_in_state = {
    							size > 1
    							state = 1042
						}
					}
				}
				AND = {
					TRK = {
						divisions_in_state = {
    							size > 1
    							state = 804
						}
					}
					BUK = {
						divisions_in_state = {
    							size > 1
    							state = 1042
						}
					}
				}
			}
		}


		cost = 0
		days_remove = 6

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				country_is_in_dangerous_war = yes
			}
		}


		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete AFG_secure_the_pamir"
			BUK = { country_event = DESAFG.1 }
			TRK = { country_event = DESAFG.1 }
			RUS = { country_event = DESAFG.1 }
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove AFG_secure_the_pamir target: [From.GetName]"
			transfer_state = 804
			transfer_state = 1042
			hidden_effect = {
				804 = { enable_state_integration_80_compliance = yes } #pamir
				add_state_claim = 804
				1042 = { enable_state_integration_80_compliance = yes }
				add_state_claim = 1042
			}
		}
	}

	
}